<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
{% block head %}
<title>{% block title 'News :::  Administration' %}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />

<link rel="stylesheet" href="{{ asset('bundles/news/css/main.css') }}" />
<link rel="stylesheet" href="{{ asset('bundles/news/js/themes/default/style.css') }}" />


<link href='http://fonts.googleapis.com/css?family=Cuprum' rel='stylesheet' type='text/css' />

{% include "EMNewsBundle:Resources:scripts.html.twig" %}
{% block scripts%}

{% endblock%}
{% endblock %}

</head>

<body>
{% block body %}

{% include "EMNewsBundle:Resources:topNavigation.html.twig" %}
<!-- Header -->
{% block header %}
<div id="header" class="wrapper">
    <div class="logo"><a href="#"  title=""><img src="{{asset('bundles/news/images/logos/lighthouse.png')}}" width="210px" height="40px" alt="" /></a></div>
  {% block middlenav%}
{% endblock %}  
</div>
{% endblock %}

<!-- Main wrapper -->
<div class="wrapper">
	
{% block leftNavigation %}
<!-- Left navigation -->
	<div class="leftNav">  
    	<ul id="menu">
            <li class="dash" class="active"><a href="{{ path('em_news_admin') }}" title=""><span>Dashboard</span></a></li>
            <li class="typo"><a href="#" title="" class="exp"><span>Posts</span></a>
            	<ul class="sub">
                    <li><a href="{{ path('em_news') }}"  title="">Write Post</a></li>
                    <li><a href="{{ path('em_news_list', {'status': 'All'}) }}"  title="">All Posts </a></li>
                </ul>
            </li>
            <li class="typo"><a href="#" title="" class="exp"><span>Categories</span></a>
            	<ul class="sub">
                    <li><a href="{{ path('em_category_list') }}"  title="">All Categories</a></li>
                </ul>
            </li>
            <li class="login"><a href="{{path('em_profile')}}"  title=""><span>My profile</span></a></li>           
            {% if is_granted('ROLE_ADMIN') %}
            <li class="settings"><a href="#" title="" class="exp active corner"><span>Admnistration</span></a>
            	<ul class="sub" style="display:block;">
                    <li><a href="{{ path('em_user_registration')}}"  title="">Users</a></li>
                    <li><a href="{{ path('em_user_list')}}"  title="">User List </a></li>
                    <li><a href="{{ path('em_src')}}"  title="">Sources</a></li>
                    <li><a href="{{ path('em_geography_list')}}"  title="">Geography</a></li>
                    <li><a href="{{ path('em_geography_language_selection')}}"  title="">Geography & Language relation</a></li>
                </ul>
            </li>
           {% endif%}
			
        </ul>
   	</div>
	
	
	{% endblock %}
	
	<div class="content" id="container">
	{% block content %}
	{% endblock %}
	</div>
	
</div>
<!-- Footer -->
<div id="footer">
{% block footer %}
    <div class="wrapper">
    	<span>&copy; Copyright 2011. All rights reserved. <a href="#" title="">EVERYMUNDO LLC</a></span>
    </div>

{% endblock %}
</div>
<!--end footer-->
{% endblock %}
</body>
</html>
